projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dda7ca
)
(main): Explicitly check result of message box for OK.
author
Geoff Voelker
<voelker@cs.washington.edu>
Tue, 21 Jul 1998 04:00:21 +0000
(
04:00
+0000)
committer
Geoff Voelker
<voelker@cs.washington.edu>
Tue, 21 Jul 1998 04:00:21 +0000
(
04:00
+0000)
nt/addpm.c
patch
|
blob
|
history
diff --git
a/nt/addpm.c
b/nt/addpm.c
index 2e536df03a78cd172ab3b29fd72ec788ea6ddac6..a916c87e6bf8d85c0cc0963c0103988d64818cf6 100644
(file)
--- a/
nt/addpm.c
+++ b/
nt/addpm.c
@@
-152,9
+152,12
@@
main (argc, argv)
/* Tell user what we are going to do. */
{
+ int result;
+
char msg[ MAX_PATH ];
sprintf (msg, "Install Emacs at %s?\n", emacs_path);
- if (!MessageBox (NULL, msg, "Install Emacs", MB_OKCANCEL | MB_ICONQUESTION))
+ result = MessageBox (NULL, msg, "Install Emacs", MB_OKCANCEL | MB_ICONQUESTION);
+ if (result != IDOK)
{
fprintf (stderr, "Install cancelled\n");
exit (1);